solution to one dimensional heat equation when both ends are insulated